<?
$this->load->helper('url');

$size_source = getimagesize("./images/store/source/$row->id" . '_1.jpg');


$atts = array(
              'width'      => $size_source[0]+30,
              'height'     => $size_source[1]+30,
              'scrollbars' => 'yes',
              'status'     => 'yes',
              'resizable'  => 'yes',
              'screenx'    => '0',
              'screeny'    => '0'
            );

?>
      
                <? if (read_file("./images/store/source/$row->id" . '_1.jpg')){ ?>
       
                 
                     <div align="center"> 
                          <table border="0" cellpadding="0" cellspacing="0" id="product_image">
                              <tr>
                                <td width="600">
                                
                                    <?
                                    echo anchor_popup('/images/store/source/' . $row->id . '_1.jpg', '<img src="/images/store/big/' . $row->id . '_1.jpg" border="0" alt="' . $row->name . '">', $atts);
                                    ?>
                                
                                </td>
                               <td width="10" valign="bottom" align="right">
                                
                                    <?
                                      echo anchor_popup('/images/store/source/' . $row->id . '_1.jpg', '<img src="/images/global/lupa.png" border="0">', $atts);
                                    ?>
                                  
                                  </td>
                              </tr>
                          </table>
                      </div>
       
         <?}else{?>
       
         <div align="center"><img src="/images/store/big/<?=$row->id?>_1.jpg"></div>
         <?}?>
         
         
        